package com.visionet.school.app.web.entity.dynamic;

import com.visionet.school.app.web.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * Created by hxpeng on 2017/5/27.
 */


@Entity
@Table(name = "t_dynamic_comment")
public class DynamicComment extends IdEntity{

    @NotNull
    private String memberId;

    @NotNull
    private String memberName;

    @NotNull
    private String memberAvatarPath;

    @NotNull
    private String dynamicId;

    @NotNull
    private String comment;

    private String parentCommentId;

    private String toMemberId;

    private String toMemberName;

    private String toMemberAvatarPath;

    private Integer likes;

    private Integer reply;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberAvatarPath() {
        return memberAvatarPath;
    }

    public void setMemberAvatarPath(String memberAvatarPath) {
        this.memberAvatarPath = memberAvatarPath;
    }

    public String getDynamicId() {
        return dynamicId;
    }

    public void setDynamicId(String dynamicId) {
        this.dynamicId = dynamicId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(String parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public String getToMemberId() {
        return toMemberId;
    }

    public void setToMemberId(String toMemberId) {
        this.toMemberId = toMemberId;
    }

    public String getToMemberName() {
        return toMemberName;
    }

    public void setToMemberName(String toMemberName) {
        this.toMemberName = toMemberName;
    }

    public String getToMemberAvatarPath() {
        return toMemberAvatarPath;
    }

    public void setToMemberAvatarPath(String toMemberAvatarPath) {
        this.toMemberAvatarPath = toMemberAvatarPath;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getReply() {
        return reply;
    }

    public void setReply(Integer reply) {
        this.reply = reply;
    }

    @Override
    public String toString() {
        return "DynamicComment{" +
                "memberId='" + memberId + '\'' +
                ", memberName='" + memberName + '\'' +
                ", memberAvatarPath='" + memberAvatarPath + '\'' +
                ", dynamicId='" + dynamicId + '\'' +
                ", comment='" + comment + '\'' +
                ", parentCommentId='" + parentCommentId + '\'' +
                ", toMemberId='" + toMemberId + '\'' +
                ", toMemberName='" + toMemberName + '\'' +
                ", toMemberAvatarPath='" + toMemberAvatarPath + '\'' +
                ", likes=" + likes +
                ", reply=" + reply +
                '}';
    }
}
